using ExpressesClass.BestApi.Base;
using ExpressesClass.BestApi.kdWaybillDeliveryCreateNotifyNewRsp;
using ExpressesClass.BestApi.Utils;
using System;
using System.Collections.Generic;

namespace ExpressesClass.BestApi.kdWaybillDeliveryCreateNotifyNewReq
{
    public class KdWaybillDeliveryCreateNotifyNewReq : BaseRequest
    {
		public Auth auth { get; set; }
		public List<EDIPrintDetailList> EDIPrintDetailList { get; set; }
       
		public override String obtainServiceType()
        {
            return "KD_WAYBILL_DELIVERY_CREATE_NOTIFY_NEW";

        }

		public override BaseResponse makeResponse(string rsp, string format)
        {
           if ("XML".Equals(format, StringComparison.InvariantCultureIgnoreCase)) {
               return XmlUtils.xmlToObj(rsp,typeof(KdWaybillDeliveryCreateNotifyNewRsp)) as KdWaybillDeliveryCreateNotifyNewRsp;
           }
           return JsonParser.jsonToObj<KdWaybillDeliveryCreateNotifyNewRsp>(rsp);
        }


    }
}